import os
import down_bilibili

file_dir = 'D:/f/vidio/java视频/javafx'


if __name__ == '__main__':
    ds = os.listdir(file_dir)
    for d in ds:
        fs = os.listdir(file_dir + '/' + d)
        v_path = file_dir + '/' + d + '/' + fs[1]
        a_path = file_dir + '/' + d + '/' + fs[0]
        o_path = file_dir + '/' + d + '.mp4'
        print('正在合成', v_path, a_path, o_path)
        down_bilibili.CombineVideoAudio(v_path, a_path, o_path)
        # break


